function [num] = IA_Relation_To_Number(IA_Relation)
%IA_Relation_To_Number Relation to Number 
%   Takes a Relation structure and converts to a Number.
  scale = 1;
  num = 0;
  
  IA_Relation.set(1,7) = IA_Relation.set(1,7) | IA_Relation.set(2,7);
  
  for row = 1:2
    for col = 1:7
      if row ~= 2 || col ~= 7
        num = num + scale * IA_Relation.set(row, col);
        scale = scale * 2;
      end
    end
  end
end